package modele;

import exceptions.DataSourceException;
import exceptions.EmployeNotFoundException;
import exceptions.LoginException;
import java.util.List;
import javax.sql.DataSource;

public interface InterfaceEmployeModel {

    public Employe get(String username)
            throws EmployeNotFoundException,
                   DataSourceException;

    public void create(Employe employe)
            throws DataSourceException;

    public List<Employe> getAll()
            throws DataSourceException;

    public void delete(String username)
            throws DataSourceException;

    public void update(Employe employe)
            throws DataSourceException;

    public String logon(String username, String password)
            throws LoginException,
                   DataSourceException;

    public void setDataSource(DataSource ds);
}